package com.software.decorator;

public class EggMeal extends Meal {

    public EggMeal(FastFood fastFood, String desc, float price) {
        super(fastFood, desc, price);
    }

    @Override
    public float cost() {

        return getFastFood().cost() + getPrice();
    }

    @Override
    public String getDesc() {
        return super.getDesc() + getFastFood().getDesc();
    }
}
